package com.pd.dubbo.dubbo_consume.reference;

import com.alibaba.dubbo.config.annotation.Reference;
import com.pd.dubbo.service.BaseService;
import org.springframework.stereotype.Service;

/**
 * @ClassName lisaisai
 * @Descirption 服务实现类
 * @Author Administrator
 * @Date 2018/9/19 10:15
 * @Version 1.0
 **/

@Service("refService")
public class RefService {
    @Reference(group="helloService", version="1.0")
    private BaseService baseService;

    public String sayHello(String name){
        return baseService.build(name);
    }

}
